#pragma once
#include "..\server\common\dropformulacore.h"
#include <string>
using namespace std;

class CDropItem
{
public:
	CDropItem(void);
	~CDropItem(void);

private:
	DWORD		m_dwCode;
	BYTE		m_byEnchant;
	BYTE		m_byRank;
	BOOL		m_bDivine;
	BYTE		m_byDropLevel;
	string		m_strName;
	eDROP_TYPE	m_DropType;
	DWORD		m_dwMoney;

public:
	BOOL operator==(const CDropItem& object)
	{
		if( m_dwCode != object.m_dwCode )
			return FALSE;

		if( m_byEnchant != object.m_byEnchant )
			return FALSE;

		if( m_bDivine != object.m_bDivine )
			return FALSE;

		if( m_byRank != object.m_byRank )
			return FALSE;

		return TRUE;
	}

public:
	DWORD		GetCode(){ return m_dwCode; }
	BYTE		GetEnchantLevel(){ return m_byEnchant; }
	BYTE		GetRank(){ return m_byRank; }
	BOOL		GetDivine(){ return m_bDivine; }
	BYTE		GetDropLevel(){ return m_byDropLevel; }
	string		GetName(){ return m_strName; }
	eDROP_TYPE	GetDropType(){ return m_DropType; }
	DWORD		GetMoney(){ return m_dwMoney; }

	void	SetCode( DWORD dwCode );
	void	SetEnchantLevel( BYTE byEnchant );
	void	SetRank( BYTE byRank );
	void	SetDivine( BOOL bDivine );
	void	SetDropLevel( BYTE byDropLevel );
	void	SetName( TCHAR* pszName );
	void	SetDropType( eDROP_TYPE DropType );
	void	SetMoney( DWORD dwMoney );
};


